/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sgs.auxiliar;

import br.com.sgs.util.DataValue;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Eric
 */
public class ModeloSolicitacaoAux implements Serializable {

    //Status    
    public static final int CANCELADA = -1;
    public static final int ABERTA = 1;
    public static final int CONCLUIDA = 2;
    
    public static String getStatusLabel(int valor) {
        try {

            switch (valor) {
                case ABERTA:
                    return "solicitacaoAberta";
                case CONCLUIDA:
                    return "solicitacaoConcluido";
                case CANCELADA:
                    return "solicitacaoCancelada";
                default:
                    return null;
            }

        } catch (Exception e) {
            return null;
        }
    }
    
     public static List<DataValue> getStatusListaAll() {
        try {

            List<DataValue> ls = new ArrayList<DataValue>();
            ls.add(new DataValue(String.valueOf(ABERTA), "solicitacaoAberta"));
            ls.add(new DataValue(String.valueOf(CONCLUIDA), "solicitacaoConcluido"));
            ls.add(new DataValue(String.valueOf(CANCELADA), "solicitacaoCancelada"));
            
            return ls;

        } catch (Exception e) {
            return null;
        }
    }
}
